package com.example.service;

import com.example.entity.Student;
import com.example.entity.example.StudentExample;
import com.example.entity.bo.StudentCourseResultBO;

import java.util.List;

public interface StudentService {
    void add(Student student);

    Student getById(String id);

    void updateById(Student student);

    void updateSelectiveById(Student student);

    void removeById(String id);

    List<Student> getByExampleWithLimit(StudentExample example, Integer page, Integer limit);

    long getCountByExample(StudentExample example);

    List<StudentCourseResultBO> getStudentCourseResultsById(String id);

    StudentCourseResultBO getStudentCourseResultsByIdAndCourseId(String studentId, String courseId);

    List<Student> getByTeacherId(String teacherId);
}
